import { _decorator, Button, Component, director } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('UIStartup')
export class UIStartup extends Component {
    start() {
        const btn = this.node.getChildByName('BtnStart')
        btn.on(Button.EventType.CLICK, this.onBtnStartHandler, this)
    }

    update(deltaTime: number) {
        
    }

    private onBtnStartHandler(): void {
        director.loadScene('game')
    }
}


